home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
ddj0897.zip
/
RCSC.ZIP
/
LIB51
/
STRCHR.C
< prev
next >
Wrap
Text File
|
1997-01-12
|
188b
|
12 lines
/*
** return pointer to 1st occurrence of c in str, else 0
*/
strchr(str, c) char *str, c; {
while(*str) {
if(*str == c) return (str);
++str;
}
return (0);
}